package com.example.docmanagement.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 权限查询请求
 */
@Data
@Schema(description = "权限查询请求参数")
public class PermissionQueryRequest {

    @Schema(description = "页码", example = "1", defaultValue = "1")
    private Integer page = 1;

    @Schema(description = "每页数量", example = "50", defaultValue = "50")
    private Integer pageSize = 50;

    @Schema(description = "模糊搜索关键字（名称、描述）", example = "document")
    private String keyword;

    @Schema(description = "资源模块", example = "user")
    private String resource;

    @Schema(description = "动作类型", example = "list")
    private String action;

    @Schema(description = "分类", example = "基础管理")
    private String category;

    @Schema(description = "排序字段", allowableValues = {"createdAt", "sortOrder", "name"}, defaultValue = "sortOrder")
    private String sortBy = "sortOrder";

    @Schema(description = "排序方向", allowableValues = {"asc", "desc"}, defaultValue = "asc")
    private String sortOrder = "asc";
}


